package com.zyb.basic.mapper;

import com.zyb.basic.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {
    List<T> loadAll();

    T loadOne(Long id);

    void add (T department);

    void delete (Long id);

    void update (T department);
    //查询总条数
    Integer queryCount(BaseQuery query);
    //查询当前的页数
    List<T> queryList(BaseQuery query);

    void batchDelete(List<Long> ids);
}
